//
//  TinyRadioGroupConst.h
//  TinyRadioGroup
//
//  Created by kingdomrain on 2020/6/20.
//  Copyright © 2020 sunline. All rights reserved.
//

#ifndef TinyRadioGroupConst_h
#define TinyRadioGroupConst_h

/**
 id    string    规定元素的唯一id
 type    string    样式类名
 dataSource    array    json对象数组：{“value”:“0”,“text”:“同意”},{“value”:“1”,“text”:“不同意”},{“value”:“0”,“text”:“放弃”}
 maxSelectNumber    string    最大选择数 在多选的情况下起作用
 selectType    string    SingleSelect/MultiSelect 选择的类型 （单选或者多选）
 disable    string    true/false 是否可选中，如果配置成false,任何一行都禁止被选中
 titlePosition    string    left/right left:文字在图片左边，right:文字在图片右边
 */
//RadioGroup支持的属性
static NSString * const kTinyRadioGroupAttibutNameDataSource = @"dataSource";
static NSString * const kTinyRadioGroupAttibutNameMaxSelectNumber = @"maxSelectNumber";
static NSString * const kTinyRadioGroupAttibutNameSelectType = @"selectType";
static NSString * const kTinyRadioGroupAttibutNameDisable = @"disable";
static NSString * const kTinyRadioGroupAttibutNameTextPosition= @"textPosition";

//RadioGroup指定属性值
static NSString * const kTinyRadioGroupAttibutValueSingleSelect = @"SingleSelect";
static NSString * const kTinyRadioGroupAttibutValueMultiSelect = @"MultiSelect";
static NSString * const kTinyRadioGroupAttibutTitlePositionValueLeft = @"left";
static NSString * const kTinyRadioGroupAttibutTitlePositionValueRight = @"right";

static NSString * const kTinyRadioGroupRadioValue = @"value";
static NSString * const kTinyRadioGroupRadioCaption = @"caption";
static NSString * const kTinyRadioGroupRadioIndex = @"index";
static NSString * const kTinyRadioGroupRadioUnCheckStatus = @"0";
static NSString * const kTinyRadioGroupRadioCheckStatus = @"1";

/**  RadioGroup自定义样式字段含义
 width     string   宽
 height    string    高
 radio-width     string   radio按钮的宽度
 radio-height   string     radio按钮的高度
 check-img    string    选中时选择按钮的背景图片
 unCheck-img    string    未选中时选择按钮的背景图片
 title-color    string    文本字体颜色
 title-font    string    文本字体字号
 item-height    string    单个表单的高度
 radio-margin    string    选择按钮距大组件边界的距离
 title-select-color    string    支持当前选中项的文本颜色配置
 background-color    string    支持配置整个大组件的背景色
 divider-height    string    选项行之间分隔线的高度
 divider-margin    string    选项行之间分隔线距大组件边界的距离
 divider-color    string    选项行之间分隔线的颜色
 radio-drawable-padding    string    radio按钮和富文本之间距离
 //20201124新增样式
 item-margin    string    item 外边距
 item-padding    string    item 内边距离
 item-border-radius    string    item 边框弧度
 item-background-color    string    item 背景色
 item-highlighted-color    string    item 选中背景色
 item-index-spacing    string    序号与文本间距
 */
//RadioGroup支持的样式
static NSString * const kTinyRadioGroupStyleNameWidth = @"width";
static NSString * const kTinyRadioGroupStyleNameHeight = @"height";
static NSString * const kTinyRadioGroupStyleNameRadioWidth = @"radio-width";
static NSString * const kTinyRadioGroupStyleNameRadioHeight = @"radio-height";
static NSString * const kTinyRadioGroupStyleNameCheckImg = @"check-img";
static NSString * const kTinyRadioGroupStyleNameUnCheckImg = @"unCheck-img";
static NSString * const kTinyRadioGroupStyleNameTitleColor = @"font-color";
static NSString * const kTinyRadioGroupStyleNameTextFont = @"font-size";
static NSString * const kTinyRadioGroupStyleNameItemHeight = @"item-height";
static NSString * const kTinyRadioGroupStyleNameRadioMargin = @"radio-margin";   //废弃
static NSString * const kTinyRadioGroupStyleNameTitleSelectColor = @"font-highlighted-color";
static NSString * const kTinyRadioGroupStyleNameBackgroundColor = @"background-color";
static NSString * const kTinyRadioGroupStyleNameDividerHeight = @"divider-height";
static NSString * const kTinyRadioGroupStyleNameDividerMargin = @"divider-margin";
static NSString * const kTinyRadioGroupStyleNameDividerColor = @"divider-color";
static NSString * const kTinyRadioGroupStyleNameRadioDrawablePadding = @"radio-drawable-padding";
static NSString * const kTinyRadioGroupStyleNameItemMargin = @"item-margin";
static NSString * const kTinyRadioGroupStyleNameItemPadding = @"item-padding";
static NSString * const kTinyRadioGroupStyleNameItemBorderRadius = @"item-border-radius";
static NSString * const kTinyRadioGroupStyleNameItemBackgroundColor = @"item-background-color";
static NSString * const kTinyRadioGroupStyleNameItemHighlightedColor = @"item-highlighted-color";
static NSString * const kTinyRadioGroupStyleNameItemIndexSpacing = @"item-index-spacing";

//组件携带的样式
static NSString * const kTinyRadioGroupStyleNameDependenciesUri = @"dependenciesUri";


//监听事件名称
static NSString * const kTinyRadioGroupEventListenerValueChanged = @"valueChanged";



#endif /* TinyRadioGroupConst_h */
